<script setup>
	import { ref, onMounted } from 'vue';

	import { useUserStore } from '@/store/user/index.js';
	const userStore = useUserStore();

	//APP.vue 中统一登录 获取到的token 缓存到 store中
	onMounted(async () => {
		await userStore.login();
		await userStore.getDepartmentId();
	});
</script>

<template>
	<router-view></router-view>
</template>

<style scoped></style>
